package com.binfast.codegen.util;

public enum ResultCode {
    NO_LOGIN(-1,"未登录"),
    SUCCESS (0,"成功"),
    FAIL (1,"内部失败"),
    ACCESS_ERROR (403,"禁止访问"),
    NOT_FOUND (404,"页面未发现");
    private Integer code;
    private String desc;

    ResultCode(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
